import {Platform} from 'react-native';

export const isIos = () => {
  return Platform.OS === 'ios';
};

/* 四舍五入 */
export const roundingFn = num => {
  if (typeof num !== 'number') {
    return 0;
  }
  const n = parseInt(num * 10) % 10;
  return n < 5 ? parseInt(num) : parseInt(num) + 1;
};
